package com.pzhu.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.pzhu.model.help.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 菜单表
 * @TableName hs_menu
 */
@Data
@TableName(value ="hs_menu")
@ApiModel("菜单实体")
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class Menu extends BaseEntity implements Serializable {

    /**
     * 菜单名称
     */
    @ApiModelProperty("菜单名称")
    @TableField(value = "name")
    private String name;

    /**
     * 菜单图标
     */
    @ApiModelProperty("菜单图标")
    @TableField(value = "icon")
    private String icon;

    /**
     * 父菜单ID
     */
    @ApiModelProperty("父菜单ID")
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 显示顺序
     */
    @ApiModelProperty("显示顺序")
    @TableField(value = "order_num")
    private Integer orderNum;

    /**
     * 路由地址
     */
    @ApiModelProperty("路由地址")
    @TableField(value = "path")
    private String path;

    /**
     * 组件路径
     */
    @ApiModelProperty("组件路径")
    @TableField(value = "component")
    private String component;

    /**
     * 菜单类型（M目录 C菜单 F按钮）
     */
    @ApiModelProperty("菜单类型（M目录 C菜单 F按钮）")
    @TableField(value = "menu_type")
    private String menuType;

    /**
     * 权限标识
     */
    @ApiModelProperty("权限标识")
    @TableField(value = "perms")
    private String perms;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}